const app = getApp()
Component({
  properties: {
    userInfo: {
      type: Object,
      value: null
    }
  },
  lifetimes: {
    attached() {
      if (this.properties.userInfo) {
        this.setData({
          userData: this.properties.userInfo,
        })
      }
      console.log('案例',this.data.userData);
    }
  },
  data: {
    IMGBASEURL: app.globalData.IMGBASEURL,
    userData: null
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})